<template>
	<view class="p20">

		<view class="bg-fff radius20 pl20 pr20">
			<uni-datetime-picker type="datetime" v-model="form.start_time" placeholder="选择开始时间" :border="false">
				<view class="flex pt32 pb32 border-b" slot="default">
					<view class="color-666 flex1">开始时间</view>
					<input class="tr flex1" v-model="form.start_time" placeholder="选择结束时间" />
					<u-icon name="arrow-right" class="ml10 pe-none" />
				</view>
			</uni-datetime-picker>
			<!-- <view class="flex pt20 pb20 border-b">
				<view class="color-666 flex1">结束时间</view>
				<view class="tr">
					<uni-datetime-picker type="datetime" v-model="form.end_time" placeholder="选择结束时间" :border="false" />
				</view>
				<u-icon name="arrow-right" class="ml10 pe-none" />
			</view> -->
			<uni-datetime-picker type="datetime" v-model="form.end_time" placeholder="选择结束时间" :border="false">
				<view class="flex pt32 pb32 border-b" slot="default">
					<view class="color-666 flex1">开始时间</view>
					<input class="tr flex1" v-model="form.end_time" placeholder="选择结束时间" />
					<u-icon name="arrow-right" class="ml10 pe-none" />
				</view>
			</uni-datetime-picker>
			<view class="fw-w pt32 pb32">暂停接单原因：</view>
			<view class="p20 bg-f8f radius16 ">
				<textarea class="w-max fs26" v-model="form.reason" placeholder="请填写拒绝理由"></textarea>
			</view>
			<view class="h20"></view>
		</view>
		<view class="text-center mt20 color-zs fs30" @click="$u.route('/pages/my/menu/stopList')">查看申请列表
			<!-- <u-icon name="arrow-right" size="28" /> -->
		</view>
		<view class="h120"></view>
		<view class="pf bottom0 left0 bg-fff w-max">
			<view class="p20">
				<u-button type="warning" ripple @click="submit">提交</u-button>
			</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				form: {
					start_time: '',
					end_time: '',
					reason: ''
				}
			}
		},
		methods: {
			submit() {
				this.$request('/master/my/stopApply', this.form).then(res => {
					this.$msg(res.msg)
					setTimeout(this.$navBack, 1000)
				})
			}
		}
	}
</script>

<style lang="scss">

</style>
